package com.hlg.xboot.dao;

import com.hlg.xboot.model.AbstractModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

/**
 * Created by yangxin on 16/4/4.
 */
@NoRepositoryBean
public interface BaseRepository<T extends AbstractModel, ID extends Serializable> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T> {

    @Override
    void delete(AbstractModel entity);
}
